package com.eclink.iot.rfidclient.websocket;

import jakarta.websocket.Session;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

public class SessionHolder {

    public static Map<String, Session> sessions = new HashMap<String, Session>();

    public static void sendMessage(String msg) throws IOException {
        for (Session session : sessions.values()) {
            session.getBasicRemote().sendText(msg);
        }
    }

}
